<template>
  <a-layout class="main">
    <a-layout-sider width="240" class="side-menu">
      <RouterMenu />
    </a-layout-sider>
    <a-layout>
      <a-layout-header class="header"></a-layout-header>
      <a-layout class="main-content">
        <a-layout-content class="content">
          <RouterView />
        </a-layout-content>
      </a-layout>
    </a-layout>
  </a-layout>
</template>
<script lang="ts" setup>
import RouterMenu from '@/components/common/RouterMenu.vue'
import { RouterView } from 'vue-router'
</script>
<style scoped lang="less">
.main {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  .header {
    background: #00b578;
  }
  .side-menu {
    background: white;
  }
  .main-content {
    padding: 15px 15px;
    box-sizing: border-box;
    overflow: hidden;
    .content {
      background: white;
      overflow: auto;
    }
  }
}
</style>
